/*************************************************************************
 *
 * $Id: log.h 126 2007-02-10 14:57:23Z alpov $
 * 
 *************************************************************************/         

#ifndef _LOG_H
#define _LOG_H

#define DF_BUF_POS          (PageSize - 2)
//#define DF_RTC_POS          (PageSize - 6)
#define DF_LOG_PAGESIZE     32

#define LOG_SENSOR_HIGH     1
#define LOG_SENSOR_LOW      2

#define LOG_SENSORS         1
#define LOG_IO              2
#define LOG_POWER           3


extern Mutex DataFlashMutex;

extern void InitLog(void);
extern void LogEraseAll(void);
extern void LogWrite(char *data, unsigned char length);

extern void LogSensors(unsigned char mode);
extern void LogIo(void);
extern void LogPower(unsigned char val);

#endif
